package org.apache.lucene.demo;

import java.util.LinkedList;

/**
 * 数据结构队列
 * 
 * @author 390576
 * 
 * @param <T>
 */
public class URLQueue<T> {

	private LinkedList<T> queue = new LinkedList<T>();

	public void enQueue(T t) {
		queue.add(t);
	}

	public T deQueue() {
		return queue.removeFirst();
	}

	public boolean isQueueEmpty() {
		return queue.isEmpty();
	}

	public boolean contains(T t) {
		return queue.contains(t);
	}

	public boolean empty() {
		return queue.isEmpty();
	}

	public T get(int index) {
		return queue.get(index);
	}

	public int size() {
		return queue.size();
	}
}
